<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="fr">
<head>
	<title><?php
		echo $shortTitle.' - ';
		if (isset($_GET) and !empty($_GET)) {
			$service = array_keys($_GET);
			if (isset($menu[$service[0]]['title'])) echo $menu[$service[0]]['title'];
		}
		else echo $menu['p']['title'];
	?></title>
	<meta http-equiv="Content-Language" content="fr"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta name="author" content="<?php echo $authorSite ?>"/>
	<meta name="description" content="<?php echo $longTitle ?>"/>
	<style type="text/css" media="screen">@import url(./styles/style.css);</style>
	<link rel="shortcut icon" type="image/x-icon" href="./images/hpcarre.jpg"/>
	<link rel="stylesheet" href="jquery/jquery-superbox-0.9.1/jquery.superbox.css" type="text/css" media="all" />
<?php if(isset($_SESSION['login'])) {?>
	<link rel="stylesheet" href="sample.css" type="text/css" />
	<script type="text/javascript" src="../ckeditor.js"></script>
	<script type="text/javascript" src="sample.js"></script>
<?php } ?>
<?php
// jmapping - a jquery/google maps plugin
if(isset($_GET['x'])) {
?>
  <script src="http://maps.google.com/maps/api/js?v=3.5&amp;sensor=false" type="text/javascript"></script>
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
  <script src="js/markermanager.js" type="text/javascript"></script>
  <script src="js/StyledMarker.js" type="text/javascript"></script>
  <script src="js/jquery.metadata.js" type="text/javascript"></script>
  <script src="js/jquery.jmapping.js" type="text/javascript"></script>
<?php } else { ?>
	<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>
<?php }?>
<?php
// Pour timeline
if(isset($_GET['x']) and !isset($_GET['d'])) {
?>
	<script src="api/timeline-api.js" type="text/javascript"></script>
	<script src="api/timeline-bourbaki.js" type="text/javascript"></script>
	<link rel="stylesheet" href="api/timeline-bourbaki.css" type="text/css" />
<?php
}
?>
	<script type="text/javascript" src="jquery/jquery-superbox-0.9.1/jquery.superbox.js"></script>
	<script type="text/javascript">
		$(function(){
			$.superbox.settings = {
				closeTxt: "Fermer",
				loadTxt: "Chargement...",
				nextTxt: "Suivant",
				prevTxt: "Précédent"
			};
			$.superbox();
		});
	</script>
	<script type="text/javascript">
/*
		var _gaq = _gaq || [];
		_gaq.push(['_setAccount', 'UA-24093586-4']);
		_gaq.push(['_trackPageview']);
		(function() {
		  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		})();
*/
		/* banner links */
		function MM_jumpMenu(targ,selObj,restore){
			eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
			if (restore) selObj.selectedIndex=0;
		}
	</script>
</head>
<?php
if(isset($_GET['x']) and !isset($_GET['d'])) echo '<body onload="onLoad();" onresize="onResize();">';
else echo '<body>';
?>
	<div id="banner">
		<ul>
    	<li><a href="http://poincare.univ-nancy2.fr/">
    		<span style="vertical-align:top;"><img src="./images/logo-ahp-small-dark.png" alt="Logo AHP" class="logo_banner"/></span>
    		LHSP-AHP
    		</a>
    	</li>
      <li>
       	<form id="publications_banner" name="publications_banner" action="" style="padding-left:1em;font-weight:bold;">
         	<select id="acces_publication_banner" name="acces_publication_banner" onchange="MM_jumpMenu('parent',this,0)">
					<option value="Publications">Accès rapide aux sites du LHSP-AHP</option>
					<option value="http://poincare.univ-nancy2.fr/">Site du LHSP-AHP</option>
					<option value="http://halshs.ccsd.cnrs.fr/LPHSAHP/">Publications (HAL)</option>
					<option value="">&nbsp;&nbsp;&nbsp;>>> Edition</option>
					<option value="http://poincare.univ-nancy2.fr/PhilosophiaScientiae/Accueil/">Philosophia scientae</option>
					<option value="http://philosophiascientiae.revues.org/">Philosophia scientae - Revues.org</option>
					<option value="http://poincare.univ-nancy2.fr/Edition/?contentId=1485">Publications des Archives Henri Poincaré</option>
					<option value="">&nbsp;&nbsp;&nbsp;>>> Histoire des sciences</option>
					<option value="http://webdoc-hpoincare.univ-nancy2.fr/">A la recherche de Henri Poincaré</option>
					<option value="http://ahp-poincare-biblio.univ-lorraine.fr/">Archives Henri Poincaré (AHP)</option>
					<option value="http://ahp-archives-bourbaki.univ-nancy2.fr/">Archives Bourbaki (AHP)</option>
					<option value="http://mathdoc.emath.fr/RBSM/">Répertoire Bibliographique des Sciences Mathématiques (MATHDOC)</option>
					<option value="http://nouvelles-annales-poincare.univ-nancy2.fr/">Nouvelles Annales de Mathématiques : Les auteurs</option>
          </select>
        </form>
      </li>
      <li class="bannerDeco"><a href="./" id="bannerTitle"><?php echo $longTitle?></a></li>
		</ul>
	</div><!-- fin de banner -->
	<div id="wrapper">
		<div id="header">
			<div id="headerRight">
				<ul>
					<li>
						<a href="http://www.cnrs.fr" title="Centre National de la recherche Scientifique">
							<img src="images/logo-CNRS-32.png" alt="CNRS"/>
						</a>
					</li>
					<li>
						<a href="http://www.univ-nancy2.fr/" title="Université de Lorraine">
							<img src="images/logo-udl-small.jpg" alt="Université de Lorraine"/>
						</a>
					</li>
				</ul>
			</div>
			<div id="headerLogo">
				<a href="index.php"><img src="images/bourbaki-logo.png" alt="Archives Bourbaki"/></a>
			</div>
		</div><!-- fin de headerRight -->
		<div id="espace">
			<div id="menu">
			  <ul>
				<?php
				// Default menu
				if (empty($_GET) and empty($_POST)){
					$defaultMenu = array_keys($menu);
					$defaultMenu = $defaultMenu[0];
					$_GET[$defaultMenu]=true;
				}
				foreach($menu as $key=>$value){
					if (isset($_GET[$key])) echo '		<li class="actif"><a href="?'.$key.'"><span>'.$value['title'].'</span></a></li>'."\n";
					else echo '		<li class="inactif"><a href="?'.$key.'"><span>'.$value['title'].'</span></a></li>'."\n";
				}
				?>
			  </ul>
			</div>
			<div id="content">
